#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
using namespace std;
int main() {
    string str;vector<int> a;
    while (cin >> str) {
        int res = 0;
        
        for (int i = 0; i < str.size(); i++) {
            if (str[i] >= '0' && str[i] <= '9') {
                int j = i + 1;
                while (str[j] >= '0' && str[j] <= '9')
                    ++j;

                if (j - i > res) {
                    a.clear();
                    res = j - i;
                    a.push_back(i);
                }
            }
        }
    }
    for (int k = 0; k < a.size(); k++)
    {
        cout << str.substr(a[k]);
    }
    return 0;
}